<template>
    <div>
        <h1>{{$attrs.msg}}</h1>
        <h1>{{$attrs.info}}</h1>
        <h1>{{$attrs.obj.name}}</h1>
        <button @click="$listeners.yang(),$listeners.ming()">测试$listeners传递过来的事件</button>
    </div>
</template>

<script>
    export default {
        props:["msg"],
        mounted(){
            console.log(this.$attrs);
            console.log(this.$listeners);
        }
    };
</script>

<style lang="scss" scoped>

</style>